package com.rpc.framework.cdec;

import com.alibaba.fastjson.JSON;

/**
 * Created by tan on 2017/9/1.
 */
public class JsonEncoder implements Encoder {
	@Override
	public <T> byte[] encode(T obj) throws Exception{
		return JSON.toJSONString(obj).getBytes("utf-8");
	}
}
